package bist.believeinstep.logic;

import java.util.List;

import bist.believeinstep.domain.RestaurantHotel;
import bist.believeinstep.impl.RestaurantHotelTemplate;
import bist.believeinstep.util.Util;

public class RestaurantHotelService {
	private RestaurantHotelTemplate restaurantHotelTemplate;
	
	public RestaurantHotelService(){
		restaurantHotelTemplate = (RestaurantHotelTemplate)Util.getConnection("restaurantHotelTemplate");
	}
	public void create(RestaurantHotel restaurantHotel){
		restaurantHotelTemplate.create(restaurantHotel);
	}
	public void update(RestaurantHotel restaurantHotel){
		restaurantHotelTemplate.update(restaurantHotel);
	}
	public void delete(Integer id){
		restaurantHotelTemplate.delete(id);
	}
	public void delete(String name){
		restaurantHotelTemplate.delete(name);
	}
	public RestaurantHotel getRestaurantHotel(Integer id){
		return restaurantHotelTemplate.getRestaurantHotel(id);
	}
	public RestaurantHotel getRestaurantHotel(String name){
		return restaurantHotelTemplate.getRestaurantHotel(name);
	}
	public List<RestaurantHotel> list(){
		return restaurantHotelTemplate.list();
	}
}
